<?php
if( !defined('BASE') ) exit('Access Denied!');

/**
 * Obullo Framework (c) 2009.
 *
 * PHP5 MVC-min Framework software for PHP 5.2.4 or newer
 * Derived from Code Igniter
 *
 * @package         obullo        
 * @author          obullo.com
 * @copyright       Ersin Güvenç (c) 2009.
 * @since           Version 1.0
 * @filesource
 * @license
 */

/**
*  o SSC Pattern (c) 2009 Ersin Güvenç
*  o We use Super Static Controllers  
*  o for prevent long writing ($this->input->post())
*  o we just write like this ob::post();
* 
*  @link http://develturk.com/2009/09/25/new-term-in-the-
*  php-world-introducing-new-php-mvc-ssc-pattern/
*/
 
/**
 * Obullo Super Static Controller (SSC)
 * 
 * We put all static main codes here
 * Like cookie , session..
 * Goal of the SSC to get all static functions
 * like this ob::instance(), ob::session_set(), 
 * ob::cookie_get()  you can 
 * also use $this var inside from static
 * functions.
 * 
 * @version 0.1
 * @version 0.2 added core functions like ob::register
 * @version 0.3 moved some func to common.php like 
 *              ob::register
 * @version 0.4 added version() function.
 * 
 * @link    SSC Pattern: http://develturk.com/2009/09/25/new-
 * term-in-the-php-world-introducing-new-php-mvc-ssc-pattern/ 
 */
 
 
 /**
 * Obullo Super Object (c) 2009
 * 
 * @version 0.1
 * @version 0.2 added core functions like ob::register
 * @version 0.3 added extending to SSC, moved register
 *              functions to common.php
 * @version 0.4 added $load variable for loader support
 *              helpers, functions..
 */
 
Class obullo extends loader
{   
    /**
    * Load files just from
    * helpers..
    * 
    * @var object
    */
    public $load;
    
    /**
    * Obullo instance
    * 
    * @var object
    */
    private static $instance;

    /**
    * Construct func.
    * @return void
    */
    public function __construct()
    {   
        self::$instance = $this;
        
        $this->load = self::$instance;
        
        // parent::__construct();
    }

    /**
    * obullo::instance();
    * 
    * Obullo Super Object in Every Where
    *  
    * @author Ersin Güvenç
    * @version 1.0 
    * @version 1.1 get_instance renamed and moved here
    * @return object
    */
    public static function instance()
    {       
       return self::$instance;
    } 
    
} // end class.


?>
